#
#  alerts.py
#  Trigger
#
#  Created by Jonathan on 5/4/06.
#  Copyright (c) 2006 __MyCompanyName__. All rights reserved.
#

from Foundation import *
from AppKit import NSRunAlertPanel, NSBeginAlertSheet

def alertMsgSheet(window, message = "Error",):
    """Alert Message that opens a sheet"""
    NSBeginAlertSheet(
        'Error',
        'OK', None, None, window, None, None, None,
        0, '%s'%(message,))
        
def alertMsgNoSheet(title = "Alert", message = "Error", 
                    buttonString = "OK"):
    """Plane Jane Popup Alert"""
    NSRunAlertPanel(title, message, buttonString, None, None)